package com.ruoyi.stock.service;

import com.ruoyi.stock.domain.vo.StockListVo;
import com.ruoyi.stock.domain.vo.WarehouseOutInfoNumberVo;
import com.ruoyi.stock.domain.vo.WarehouseOutStockVo;

import java.util.Date;
import java.util.List;

/**
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-10-31 19:07:21
 * @Description:
 */

public interface WarehouseOutStockService {
    /**
     * 查询出库详情信息
     * @param warehouseOutInfoId
     * @param goodsType
     * @return
     */
    WarehouseOutStockVo list(Integer warehouseOutInfoId, Integer goodsType);

    /**
     * 库存列表
     * @param goodsNo
     * @return
     */
    List<StockListVo> stockList(String goodsNo,String sourceNo);

    /**
     * 添加出库记录
     * @param warehouseOutInfoNumberVo
     * @return
     */
    Integer outStock(WarehouseOutInfoNumberVo warehouseOutInfoNumberVo);

    /**
     * 修改出库单状态
     * @param warehouseOutId
     * @param goodsType
     * @param sourceNo
     * @param userId
     * @param nowDate
     * @return
     */
    Integer updateWarehouseStatus(Integer warehouseOutId,Integer goodsType,String sourceNo, Long userId, Date nowDate);
}
